import tkinter as tk
from concurrent.futures import ThreadPoolExecutor
import music
 
window = tk.Tk()            #主窗口
window.title('音乐下载')   #窗口标题
window.geometry('400x400')  #窗口尺寸

row1 = tk.Frame()
row1.pack(fill="x")
tk.Label(row1,text='音乐信息').pack(side=tk.LEFT)
b=tk.StringVar()
tk.Entry(row1,textvariable=b).pack(side=tk.LEFT)
tk.Button(row1, text="开始寻找",command=lambda: setup_start(b.get())).pack(side=tk.RIGHT) 

def setup_start(a):
    music.music(a)
    
window.mainloop()    
